import 'package:flutter/material.dart';
// 1.Scaffold 2.floatingActionButton
void main() {
  runApp(const MaterialApp(
      title: "hahs AppbarHomeWidget", home: AppbarHomeWidget()));
}

class AppbarHomeWidget extends StatelessWidget {
  const AppbarHomeWidget({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        leading: const IconButton(
          icon: Icon(Icons.menu),
          tooltip: 'Navigation menu',
          onPressed: null,
        ),
        title: const Text('Example title'),
        actions: const <Widget>[
          IconButton(
            icon: Icon(Icons.search),
            tooltip: 'Search',
            onPressed: null,
          ),
        ],
      ),
      body: const Center(
        child: Text("is content data"),),
      floatingActionButton: const FloatingActionButton(
        tooltip: 'Add', // used by assistive technologies
        child: Icon(Icons.add),
        onPressed: null,
      ),
    );
  }
}
